
import bit.entidade.SistemaOperacional;
import bit.service.SistemaOperacionalService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;



/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author marcelo
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    

    public static void main(String[] args) {
        SistemaOperacional sistemaOperacional = new SistemaOperacional();
        sistemaOperacional.setId(100L);
        sistemaOperacional.setFornecedor("Erro");
        ApplicationContext context = new ClassPathXmlApplicationContext("./applicationContext.xml");
        SistemaOperacionalService sistemaOperacionalService = (SistemaOperacionalService) context.getBean("operacionalService");
        sistemaOperacionalService.Gravar(sistemaOperacional);
        System.out.println("Gravado com sucesso");

    

    }





}
